package com.gz.EuchreU.Contants;

import org.anddev.andengine.entity.scene.Scene;

import com.gz.EuchreU.Scene.EuchreGameScene;
import com.gz.EuchreU.Scene.LoadingScene;
import com.gz.EuchreU.Scene.MenuScene;
import com.gz.EuchreU.Scene.OptionsScene;

public class Scenes {
	public static final int SCENE_MENU = 0;
	public static final int SCENE_GAME = SCENE_MENU + 1;
	public static final int SCENE_OPTIONS = SCENE_GAME + 1;
	public static final int SCENE_LOADING = SCENE_OPTIONS + 1;
		
	private static MenuScene mMenuScene;
	private static EuchreGameScene mGameScene;
	private static OptionsScene mOptionsScene;
	private static LoadingScene mLoadingScene;
	
	private static int mCurrentScene = 0;
	
//	public static Scene getCurrentScene(){
//		return getScene(mCurrentScene);
//	}
	
	public static int getCurrentSceneID(){
		return mCurrentScene;
	}
	
	public static void setCurrentScene(int pSceneID){
		mCurrentScene = pSceneID;
	}
	
	public static void setScene(int pSceneID, Scene pScene){
		switch (pSceneID) {
		case SCENE_MENU:
			mMenuScene = (MenuScene) pScene;
			break;
		case SCENE_GAME:
			mGameScene = (EuchreGameScene) pScene;
			break;
		case SCENE_OPTIONS:
			mOptionsScene = (OptionsScene) pScene;
			break;
		case SCENE_LOADING:
			mLoadingScene = (LoadingScene) pScene;
			break;
		default:
		}
	}
	
	public static LoadingScene getLoadingScene(){
		return mLoadingScene;
	}
	
	public static MenuScene getMenuScene(){
		return mMenuScene;
	}
	
	public static OptionsScene getOptionsScene(){
		return mOptionsScene;
	}
	
	public static EuchreGameScene getEuchreGameScene(){
		return mGameScene;
	}
	
	public static void setMenuScene(MenuScene pScene){
		mMenuScene = pScene;
	}
	
	public static void setGameScene(EuchreGameScene pScene){
		mGameScene = pScene;
	}
	
	public static void setOptionsScene(OptionsScene pScene){
		mOptionsScene = pScene;
	}
	
	public static void setLoadingScene(LoadingScene pScene){
		mLoadingScene = pScene;
	}
//	public static Scene getScene(int pSceneID){
//		switch (pSceneID) {
//		case SCENE_MENU:
//			return mMenuScene;
//		case SCENE_GAME:
//			return mGameScene;
//		case SCENE_OPTIONS:
//			return mOptionsScene;
//		case SCENE_LOADING:
//			return mLoadingScene;
//		default:
//			return mMenuScene;
//		}
//	}
}
